package tkaczyk.simtalk.message;

import java.util.Date;

public class Message {
	int seqNo;
	String xml;
	String nick;
	String body;
	Date sent;
	Date received;
	Target target;
	public enum Target {INCOMING, OUTGOING, UNSPECIFIED};
	
	public String toXML() {
		return xml;
	}
	
	public String toString() {
		return body;
	}

	public String getNick() {
		return nick;
	}
	
	public Target getTarget() {
		return target;
	}
	
	public int getSeqNo() {
		return seqNo;
	}
	
	public Date getSent() {
		return sent;
	}
	
	public Date getReceived() {
		return received;
	}
	
	@Override
	public boolean equals(Object o) {
		return body.equals(o.toString());
	}
}
